export default [
  {
    path: '/user',
    layout: false,
    routes: [{ name: '登录', path: '/user/login', component: './User/Login' }],
  },
  { path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome', access: 'canAdmin'},
  // {
  //   path: '/admin',
  //   name: '管理页',
  //   icon: 'crown',
  //   access: 'canAdmin',
  //   routes: [
  //     { path: '/admin', redirect: '/admin/sub-page' },
  //     { path: '/admin/sub-page', name: '二级管理页', component: './Admin' },
  //   ],
  // },
  { name: '请假', icon: 'table', path: '/list', component: './TableList' },
  { name: '考勤统计', icon: 'crown', path: '/slist', component: './AttendanceStatistics', access: 'canAdmin',},
  // { name: '权限管理', icon: 'crown', path: '/permission', component: './Permission',access: 'canAdmin' },
  { name: '员工信息管理', icon: 'table', path: '/person', component: './Person' },
  { name: '打卡管理', icon: 'table', path: '/management', component: './Management' }, 
  { name: '员工请假审批', icon: 'crown', path: '/Leave', component: './Leave' , access: 'canAdmin',}, 
  // { name: '加班管理', icon: 'table', path: '/person', component: './Person' },
  { path: '/', redirect: '/welcome' },
  { path: '*', layout: false, component: './404' },
];
